from django.conf.urls.defaults import *
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^outland/', include('outland.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^outland/list/', include('outland.list.urls')),
    (r'^outland/poll/', include('outland.poll.urls')),
    (r'^outland/search/', include('outland.search.urls')), 
    # Uncomment the next line to enable the admin:
    (r'^admin/(.*)', admin.site.root),

)
handler404 = 'outland.poll.views.errorpage404'
handler500 = 'outland.poll.views.errorpage500'
if settings.DEBUG:
    urlpatterns += patterns('django.views.static',
    (r'^static_media/(?P<path>.*)$', 
        'serve', {
        'document_root': settings.MEDIA_ROOT,
        'show_indexes': True }),)
